﻿using Newtonsoft.Json;
using SH.Common.CommonReturn;
using SH.Order.Domain.OrderClass;
using SH.Room.Domain.RoomClass;
using SH.Room.ErrorCodeEnum;
using SH.Room.Infrastructure.IRepository;
using SH.Room.Infrastructure.IRepository.Dto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SH.Room.Infrastructure.Repository
{
    public class RoomStateRepository : BaseRepository<RoomState>, IRoomStateRepository
    {
        private readonly ISqlSugarClient _client;

        private readonly IHttpClientFactory _httpClientFactory;

        public RoomStateRepository(ISqlSugarClient context, IHttpClientFactory httpClientFactory) : base(DbManger.BizDb)
        {
            _client = DbManger.BizDb;
            _httpClientFactory = httpClientFactory;
        }

        private const string RoomStateUrl = "http://localhost:5003/api/ClientcuStomer/clientcuShow";

        /// <summary>
        /// 更多筛选列表显示
        /// </summary>
        /// <returns>受影响行数</returns>
        public ApiPaging<List<MoreScreen>> GetMoreScreenList()
        {
            var item = _client.Queryable<MoreScreen>().ToList();
            return new ApiPaging<List<MoreScreen>> { Data = item };
        }

    }


}
